package com.czl.app.mapper;

import com.czl.app.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoMapper {
    int insert(UserInfo record);
    UserInfo findFirstByUserName(@Param("userName") String userName);
    void delUserInfoByUserId(@Param("userId") Integer userId);
    void updPasswordAndSaltByUserName(@Param("userName") String userName,@Param("password") String password,@Param("salt")String salt);
    void updPasswordAndSaltByUserName2(@Param("userName") String userName,@Param("password") String password,@Param("salt")String salt);
    void updStateByUserName(@Param("userName") String userName,@Param("state")Integer state);
    List<UserInfo> findUserInfoAll();
}